package com.smart.campus.school.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smart.campus.common.annotation.Excel;
import com.smart.campus.common.core.domain.BaseEntity;

/**
 * 试卷试题关系对象 sc_exam_paper_relation
 * 
 * @author Zhihe.Li
 * @date 2020-05-25
 */
public class ExamPaperRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Long id;

    /** 试题id */
    private Long questionId;

    /** 试卷id */
    private Long paperId;

    public ExamPaperRelation(Long questionId, Long paperId) {
        this.questionId = questionId;
        this.paperId = paperId;
    }

    public ExamPaperRelation() {
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setPaperId(Long paperId) 
    {
        this.paperId = paperId;
    }

    public Long getPaperId() 
    {
        return paperId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionId", getQuestionId())
            .append("paperId", getPaperId())
            .toString();
    }
}
